<div class="sui-form form-horizontal">
    <!-- <div class="control-group"> -->
    <form name="itemForm" novalidate>
        <div class="control-group">
            <label class="control-label v-top">小程序名称 :</label>
            <div class="controls">
                <wx-app-list ng-model="wxappid" dft="1" ary="storeary" storedata="1" callbacks="wxaacallback(app_id)"> </wx-app-list>
                <br/>
                <br/>
                <input type="text" name="" ng-model="applet.wxappid">
            </div>
        </div>
        <div class="control-group" ng-show="!sbutype">
            <label class="control-label v-top">展示方式 :</label>
            <div class="controls">
                <label>
                    <input type="radio" name="radio" ng-model="applet.radio" class="input-xlarge" ng-value="'title'"><span>文字</span>
                </label>
                <label>
                    <input type="radio" name="radio" ng-model="applet.radio" class="input-xlarge" ng-value="'wximg'" class="input-xlarge" required />图片 </label>
                </label>
            </div>
        </div>
        <div class="control-group" ng-show="applet.radio == 'title' && !sbutype">
            <label class="control-label v-top">文字内容 :</label>
            <div class="controls">
                <input type="text" name="" ng-model="applet.title">
            </div>
        </div>
        <div class="control-group" ng-show="applet.radio == 'wximg' && !sbutype">
            <label class="control-label v-top">上传图片 :</label>
            <div class="controls">
                <!-- <wx-attachment owner-id="attachs" dhf-ng-model="applet.wximg" xtype="url" mult="false" title="上传图片" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF" wxappid="wxappid"></wx-attachment> -->
                <!-- <attachment owner-id="activity.activity_page_id ?activity.activity_page_id:1" owner-type="activity" dhf-ng-model="applet.wximg" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF"></attachment> -->
               <!--  <wx-gzh-url-uploader use-type="'png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF'" type="'xiaoxi'" call-back="getlist()" wxappid="wxgzhappid" ></wx-gzh-url-uploader> -->
                <wx-gzh-url-attachment id="suploadattach" owner-id="attachs " dhf-ng-model="attchUrl" xtype="mid " mult="false " title="上传图片" xclass="sui-btn btn-primary" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF " wxappid="wxgzhappid " setback="addimgurl(url) " datatype="1" chosed-status="xiaoxi" hide-list="1" stype="1"></wx-gzh-url-attachment>
                    
                <div class="sui-msg msg-error msg-clear help-block error">
                    <img ng-src="{{applet.wximg}}" style="width: 160px;height: 130px;margin: 3px">
                </div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">小程序路径 :</label>
            <div class="controls">
                <input type="text" name="" ng-model="applet.path">
                <a-url setback="savepath(path)" seclectdata="data"></a-url>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="button" id="submit" ng-click="save()" class="sui-btn btn-primary" ng-disabled="!(applet.path)">
                    <span>{{'save' | translate}}</span>
                </button>
            </div>
        </div>
    </form>
</div>
<!-- </div> -->